import random
import copy

class Solution(object):

    def __init__(self, nums):
        """
        
        :type nums: List[int]
        :type size: int
        """
        self.nums = nums
        self.current = copy.copy(self.nums) 

    def reset(self):
        """
        Resets the array to its original configuration and return it.
        :rtype: List[int]
        """
        self.current = copy.copy(self.nums)
        return self.current

    def shuffle(self):
        """
        Returns a random shuffling of the array.
        :rtype: List[int]
        """
        for i in range(len(self.current)):
            j = random.randint(0, len(self.current)-1)
            tmp = self.current[i]
            self.current[i]=self.current[j]
            self.current[j]=tmp
        return self.current


# Your Solution object will be instantiated and called as such:
# obj = Solution(nums)
# param_1 = obj.reset()
# param_2 = obj.shuffle()